import React from 'react'
// ===================================================================== Temp
import FormModal from '#cpt/temp/FormModal'
// ===================================================================== global declare
const { globalConfig } = window
const { COVIDUrl } = globalConfig
// ===================================================================== component
class Index extends React.Component{
	state = {
		data: [],
		// 条码作废
		formData:[
			{ label: '采样时间',			name: 'coll_time', 			full:true,		type: 'date-time',	required:true,	after:Date.now() }
		],
	}
	submit = {}
	open = (uuid)=> {
		this.submit = {uuids:uuid}
		this.modal.open({formRef: this.formRef})
	}
	
	render(){
		return FormModal.call(this, {title:'修改采样时间', labelWidth:'s6', width:600, api:COVIDUrl+'caseinfo/updateCollAt', 
			onRefresh:()=> this.props.onRefresh(),
		} )
	}
}

export default Index